package com.ctshk.rpc.order.goods.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * TODO
 *
 * @author huangxiansheng
 * @date 2021/5/20 8:25 下午
 */
@Data
@ApiModel(value="ShoppingCartReq对象", description="购物车请求对象")
public class ShoppingCartReq implements Serializable {

    @ApiModelProperty(value = "商品成本表id")
    private Long commodityCostId;

    @ApiModelProperty(value = "購物車主鍵ID")
    private Long id;

    @ApiModelProperty(value = "类型:1：门店; 2：小店; 3：商城")
    private Integer type;

    @ApiModelProperty(value = "来源id，存储与type对应业务id; （门店id，商城id，小店）")
    private Long sourceId;

    @ApiModelProperty(value = "来源名称")
    private String sourceName;

    @ApiModelProperty(value = "商品id")
    private Long commodityId;

    @ApiModelProperty(value = "商品名称")
    private String commodityName;

    @ApiModelProperty(value = "商品图片url")
    private String commodityPictureUrl;

    @ApiModelProperty(value = "商品价格")
    private BigDecimal commodityPrice;

    @ApiModelProperty(value = "商品编码")
    private String commodityNumber;

    @ApiModelProperty(value = "数量")
    private Integer number;

    @ApiModelProperty(value = "用户id")
    private Long userId;

    @ApiModelProperty(value = "成本属性表id")
    private Long commodityCostAttributeId;

    @ApiModelProperty(value = "(规格)成本属性表组合名称:组合：规格名称1+属性值1+规格名称2+属性值2")
    private String commodityCostAttributeName;

    @ApiModelProperty(value = "商品状态:1：有效; 2：已失效")
    private Integer commodityStatus;

}
